package com.cloudminds.nativeapplication.ble;

/**
 * @Description TODO
 * Created by sain on 2021/3/8 Monday.
 * Copyright © 2020 AISpeech. All rights reserved.
 * ================================================================================
 */
public interface RcListener {
    /**
     * 按键事件回调
     *
     * @param state 按键状态
     *              1 : 按下
     *              0 : 松开
     */
    void onKeyEvent(int state);

    /**
     * 获取到的音频数据
     *
     * @param audioData 音频数据
     *                  默认16k/16bit/单通道音频
     */
    void onBuffer(byte[] audioData);
}
